-- GENERATED SPELL FOR [Mazzranache] --


function spell0_3068(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(3583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3068', 2000, 1)
end

function spell1_3068(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_3068', 3000, 1)
end

function Sorts_3068(pUnit, Event)
local choix_sorts_3068 = math.random(0, 1)
if choix_sorts_3068 == 0 then
pUnit:RegisterEvent('spell0_3068', 1, 1)
end
if choix_sorts_3068 == 1 then
pUnit:RegisterEvent('spell1_3068', 1, 1)
end
end

function mob3068_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3068', math.random(1500, 3000), 1)
end

function mob3068_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3068_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3068_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3068, 1, 'mob3068_Action')
RegisterUnitEvent(3068, 2, 'mob3068_Leave')
RegisterUnitEvent(3068, 3, 'mob3068_Kill')
RegisterUnitEvent(3068, 4, 'mob3068_Die')
